<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:head></h:head>
<body>
	<h:form id="form">

		<p:ring id="basic" value="#{missionRingIndexController.agences}"
			var="agence">
			<p:outputPanel style="text-align: center;" layout="block">
            #{agence.nomAgence} - #{agence.region}
            <br />
				<p:commandButton update=":form:carDetail" icon="ui-icon-search"
					title="View" oncomplete="PF('carDialog').show(); "
					actionListener="#{missionRingIndexController.showDetails(agence)}">

				</p:commandButton>
			</p:outputPanel>
		</p:ring>



		<p:dialog id="carDetail"
			header="#{missionRingIndexController.selectedAgence.nomAgence}"
			widgetVar="carDialog" modal="true" showEffect="fade"
			hideEffect="fade" resizable="false" >
			<p:outputPanel style="text-align:center;" layout="block">
				<p:panelGrid columns="2" columnClasses="value">


					<h:outputText value="Montant des crédits:" />
					<h:outputText
						value="#{missionRingIndexController.mission.montantsDesCredits}" />

					<h:outputText value="Nombre des nouveaux clients" />
					<h:outputText
						value="#{missionRingIndexController.mission.nombreDeNouveauClients}" />

					<h:outputText value="Nombre de crédits: " />
					<h:outputText
						value="#{missionRingIndexController.mission.nombreDesCredits}" />

					<h:outputText value="Région" />
					<h:outputText value="#{missionRingIndexController.mission.region}" />

					<h:outputText value="Solde créditeur" />
					<h:outputText
						value="#{missionRingIndexController.mission.soldeCrediteur}" />

					<h:outputText value="Solde débiteur" />
					<h:outputText
						value="#{missionRingIndexController.mission.soldeDebiteur}" />

					<h:outputText value="DRH" />
					<h:outputText
						value="#{missionRingIndexController.drh.nom} #{missionRingIndexController.drh.prenom}" />



				</p:panelGrid>
			</p:outputPanel>
		</p:dialog>
	</h:form>

</body>
</html>
